package org.computeiro.mp3org.utils;

import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;

public enum RsrcImg{
	back("back.gif"),
	help("help.gif"),
	run("run.gif"),
	stop("stop.gif"),
	clearLog("saveLog.gif"),
	tools("tools.gif");
	
	
	private Image img;
	private ImageDescriptor descriptor;
	
	private RsrcImg(String resourcePath){
		descriptor = ImageDescriptor.createFromURL(RsrcImg.class.getResource("resources/" + resourcePath));
		img = descriptor.createImage();
	}

	public Image getImg() {
		return img;
	}

	public ImageDescriptor getDescriptor() {
		return descriptor;
	}
	
}
